<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品收藏</title>
    <link rel="stylesheet"  type="text/css" href="/css/reset.css">
    <link rel="stylesheet"  type="text/css" href="/css/main.css">
    <script type="text/javascript" src="/js/jquery-1.12.4.min.js"></script>
</head>
<body class="base_background">
    <div class="base">
        <div class="base_info">
            <h3>商品收藏</h3>
        </div>
        <div class="base_content">
            {{if results}}
            {{each results}}
            <script>
                $(function() {
                    $(".collect_href_{{$index}}").click(function(e){
                        e.preventDefault()
                        top.location.href="/commodity_detail/{{$value.collectInfo.commodity_id}}"
                    });
                });
            </script>
            <a href="javascript:;" class="collect_href_{{$index}}">
                <div class="collect_show">
                    <img src="{{$value.collectInfo.commodity_url}}" alt="">
                    <h3>{{$value.collectInfo.commodity_name}}</h3>
                    <em>￥2.5</em>
                    <span>{{$value.collectInfo.collect_time | dateFormat}}</span>
                    <div class="img">
                    <img src="{{$value.collectInfo.head_url}}" class="img2" alt="">
                    <p>{{$value.collectInfo.nick_name}}</p>
                    </div>
                </div>
            </a>
            {{/each}}
            {{else}}
            <p>您似乎还没有都没有收藏！</p>
            {{/if}}
        </div>
    </div>
</body>
</html>